package com.yao.longhan.presenter.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.yao.longhan.R;
import com.yao.longhan.model.StoryArticle;
import com.yao.longhan.presenter.BaseAdapter;
import com.yao.longhan.presenter.BaseHolder;
import com.yao.longhan.presenter.holder.HomeHolder;

/**
 * Created by heyao on 2017/7/31.
 */

public class HomeAdapter extends BaseAdapter<StoryArticle> {

    public HomeAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = inflater.inflate(R.layout.item_home, parent, false);
        return new HomeHolder(view, mApp);
    }
}
